/*
* Copyright (c) 2025 Huawei Device Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including but not limited to the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to provide persons with access to the Software
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

.head-detail-nav {
  width: 100%;
  height: 48px;
  padding: 12px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;

  img {
    width: 24px;
    height: 24px;
  }

  span {
    display: inline-block;
    border-radius: 3px;
    width: 12px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    margin-right: 3px;
  }

  .share-container {
    position: relative;
  }


  .share-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    z-index: 1000;

    .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.3);
      z-index: -1;
    }

    .menu-content {
      position: absolute;
      right: 0;
      background: #fff;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      border: 1px solid #e5e5e5;
      animation: slideDown 0.3s ease-out;

      .menu-item {
        display: flex;
        align-items: center;
        padding: 8px 15px;
        margin: 5px 0;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.2s;
        min-width: 80px;
        &:hover {
          background-color: #f5f5f5;
        }

        img {
          width: 24px;
          height: 24px;
          margin-right: 10px;
        }
        
      }
    }
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }

}